export default {
    middlewares: [
        'globalException',
        'jwt'
    ],
    db: {
        database: process.env.DATABASE || 'koa-start',
        username: process.env.USERNAME || 'node',
        password: process.env.PASSWORD || '123456',
        host: process.env.HOST || 'ubuntu1804.wsl',
        dialect: 'mysql',
        port: 3306,
        timezone: '+08:00',
        dialectOptions: {
            dateStrings: true,
            typeCast: true
        },
        define: {
            underscored: true,
            freezeTableName: true
        },
    },
    jwt: {
        secret: 'php-zhi',
        expiresIn: 600
    }
}
